<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Package</title>
<link href="<c:url value="/resources/css/common.css" />"
	rel="stylesheet" type="text/css">
<title>Package Data Setup</title>
<%@include file="../common_Admin_imports.jsp"%>
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">Package Data Setup</div>
						<jsp:include page="../common_link.jsp" />
					</div>
				</div>
				<div class="content_wrapper">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="input_box_wrapper">
								<div class="input_box_wrapper_text_aery">
									<div class="span8">
										<form:form method="POST" commandName="packageData"
											action="${pageContext.request.contextPath}/admin/package_data/add/process.html"
											class="form-horizontal">
											<div>${message}</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Name</label>
												<div class="controls">
													<form:input path="name" />
												</div>
												<div class="controls">
													<form:errors path="name" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Price
													:</label>
												<div class="controls">
													<form:input path="price" />
												</div>
												<div class="controls">
													<form:errors path="price" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Duration
													:</label>
												<div class="controls">
													<form:input path="duration" />
												</div>
												<div class="controls">
													<form:errors path="duration" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Description
													:</label>
												<div class="controls">
													<form:input path="description" />
												</div>
												<div class="controls">
													<form:errors path="description" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">User
													Category :</label>
												<div class="controls">
													<form:select itemValue="id" itemLabel="name"
														path="userCategory.id" items="${userCategoryMap}">
													</form:select>
												</div>
											</div>
											<input class="btn btn-inverse save" type="submit"
												value="Save" />

										</form:form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>